﻿<Window x:Class="Gradient.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Canvas>
        <Rectangle Width="100" Height="80">
            <Rectangle.Fill>
                <LinearGradientBrush>
                    <LinearGradientBrush.GradientStops>
                        <GradientStop Offset="0" Color="Black"/>
                        <GradientStop Offset="0.2" Color="Yellow"/>
                        <GradientStop Offset="0.4" Color="Red"/>
                        <GradientStop Offset="0.5" Color="Black"/>
                        <GradientStop Offset="0.7" Color="Blue"/>
                        <GradientStop Offset="0.9" Color="White"/>
                    </LinearGradientBrush.GradientStops>
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
    </Canvas>
</Window>
